<?php
error_reporting(E_ALL);
function qualquer(){
  global $var1;
  $var1 = "Variavel global";
	$var2 = "Variavel local";
}
qualquer();
echo $var1;
echo $var2;
?>